l=input()
d=dict()
for i in l:
    if i!='[' and i!=']' and i!=',':
        d[i]=1
x=list(d.keys())
ret=str()
for i in x[:-1]:
    ret+=str(i)+' '
ret+=x[-1]
print(ret)